package com.xiangge.zuoye.Demo1;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/18 14:19
 * @description 程序员类
 */
public class Progeammer extends Employee{
    public static String bcyy;

    public Progeammer() {

    }

    public Progeammer(Integer id, String name, Integer age, double salary, String bcyy) {
        super(id, name, age, salary);
        this.bcyy = bcyy;
    }

    public String getBcyy() {
        return bcyy;
    }

    public void setBcyy(String bcyy) {
        this.bcyy = bcyy;
    }

    public void getInfo(){
        System.out.println("编号："+Progeammer.this.getId()+",姓名："+Progeammer.this.getName()+
                ",年龄："+Progeammer.this.getAge()+",薪资："+Progeammer.this.getSalary()+
                ",编程语言："+bcyy+"，职位：程序员");
    }

    @Override
    public String toString() {
        return "Progeammer{" +
                "bcyy='" + bcyy + '\'' +
                '}';
    }
}
